function SceneScene2(options) {
	this.options = options;
	

}

SceneScene2.prototype.initialize = function () {
	alert("SceneScene2.initialize()");
	// this function will be called only once when the scene manager show this scene first time
	// initialize the scene controls and styles, and initialize your variables here 
	// scene HTML and CSS will be loaded before this function is called
	
	$('#svecListbox_HHT7').sfList({data:GData.profileList, index:'0', itemsPerPage:'10'});
    this.container = GlobalContainer[0];
    var ProfileLb = new ListboxUserControl($('#svecListbox_HHT7'),profileListCallback);
    ProfileLb.focusCallb = profileListFocusCallback;
    ProfileLb.blurCallb = profileListBlurCallback;
    this.container.registerObject(ProfileLb ,0,0);
    this.container.registerKey($.sfKey.BLUE,createProfile);
    this.container.registerKey($.sfKey.YELLOW,deleteProfile);
    
	ServerProxy.getProfiles('widget1');
}




SceneScene2.prototype.handleShow = function () {
	alert("SceneScene2.handleShow()");
	$.sfScene.show('Scene6');
	this.container.activate(0,0);
	// this function will be called when the scene manager show this scene 
}

SceneScene2.prototype.handleHide = function () {
	alert("SceneScene2.handleHide()");
	$.sfScene.hide('Scene6');
	// this function will be called when the scene manager hide this scene  
}

SceneScene2.prototype.handleFocus = function () {
	alert("SceneScene2.handleFocus()");
	// this function will be called when the scene manager focus this scene
}

SceneScene2.prototype.handleBlur = function () {
	alert("SceneScene2.handleBlur()");
	// this function will be called when the scene manager move focus to another scene from this scene
}

SceneScene2.prototype.handleKeyDown = function (keyCode) {
	alert("SceneScene2.handleKeyDown(" + keyCode + ")");
	// TODO : write an key event handler when this scene get focued
	  if(this.container != null)
        this.container.handleInput(keyCode);
}
